package org.itzixi;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class StaticResourceConfig extends WebMvcConfigurationSupport {
    @Override
    protected void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**")
//                .addResourceLocations("classpath:/META-INF/resources/")
                .addResourceLocations("file:E:\\IdeaProjects\\wechat-dev\\pic\\");
        super.addResourceHandlers(registry);
    }
}
